home *** CD-ROM | disk | FTP | other *** search
/ Beano - Dennis the Menace Cardz / Beano Cardz: Dennis the Menace.iso / pc / swfs / postman&intro.swf / scripts / DefineSprite_60 / frame_6 / DoAction.as
Encoding:
Text File  |  2001-03-27  |  837 b   |  34 lines

  1. ygnasher = getProperty("/gnasher", _Y);
  2. xgnasher = getProperty("/gnasher", _X);
  3. ypost = getProperty("/postman2", _Y);
  4. xpost = getProperty("/postman2", _X);
  5. setProperty("/gnasher", _X, xgnasher + "20");
  6. if("500" < xgnasher and xgnasher < "550" and ("-50" < ygnasher - ypost and ygnasher - ypost < "50"))
  7. {
  8.    stopDrag();
  9.    stopAllSounds();
  10.    setProperty("/button", _visible, "0");
  11.    stop();
  12.    tellTarget("/dennis")
  13.    {
  14.       stop();
  15.    }
  16.    setProperty("/gnasher", _visible, "0");
  17.    tellTarget("/actions postman")
  18.    {
  19.       stop();
  20.    }
  21.    tellTarget("/postman2")
  22.    {
  23.       gotoAndStop(10);
  24.    }
  25. }
  26. if("640" < xgnasher)
  27. {
  28.    startDrag("/dennis","1","80","75","80","413");
  29.    setProperty("/gnasher", _visible, "0");
  30.    setProperty("/button", _visible, "1");
  31.    stopAllSounds();
  32.    gotoAndStop(1);
  33. }
  34.